macos: send stop event when fingers touch
authorChristian Hergert <christian@hergert.me>
Sat, 26 Feb 2022 21:31:18 +0000 (13:31 -0800)
committerChristian Hergert <christian@hergert.me>
Mon, 28 Feb 2022 19:36:27 +0000 (11:36 -0800)
commitd14987e8195f8b588648ba95791797e84663b408
tree3c244e7be1893d4800f419f1d413bc58f1f58e24
parent3a0077f65f28a9e7888471cf0485c80623c33a09
macos: send stop event when fingers touch

When the fingers are placed on the touchpad, we get a scroll event with
the phase NSEventPhaseMayBegin. We can use this to synthesize an is_stop
event. This results in the scrolledwindow stopping scroll with stop
gestures.

This can cause another warning as well, however, which should be addressed
from #4730.

Fixes #4733
gdk/macos/gdkmacosdisplay-translate.c